/*
 * @Author: your name
 * @Date: 2019-10-27 20:03:14
 * @LastEditTime: 2020-04-21 08:08:43
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \pet_applet\src\store\index.ts
 */
import { createStore, applyMiddleware} from 'redux'
import thunkMiddleware from 'redux-thunk'
// import { createLogger } from 'redux-logger'
import rootReducer from '../reducers'

const middlewares = [
  thunkMiddleware,
  // createLogger()
]


export default function configStore () {
  const store = createStore(rootReducer, applyMiddleware(...middlewares))
  // const store = createStore(rootReducer)
  return store
}